<#assign classNamevar = className?uncap_first/>
app.service('${classNamevar}Service',function ($http) {
    //与后台交互的服务模块
    this.findAll = function () {
        return $http.get("../${classNamevar}/findAll.do")
    }
    this.findPage = function (page, size) {
        return $http.get('../${classNamevar}/findPage.do?pageNum=' + page + '&pageSize=' + size)
    }
    this.search = function (page, size,entity) {
        return $http.post('../${classNamevar}/search.do?pageNum=' + page + '&pageSize=' + size, entity)
    }
    this.findOne = function (id) {
        return $http.get("../${classNamevar}/findOne.do?id=" + id)
    }
    this.del = function (selectIds) {
        return $http.post("../${classNamevar}/del.do?ids=" + selectIds)
    }
    this.add = function (entity) {
        return $http.post("../${classNamevar}/add.do", entity)
    }
    this.update = function (entity) {
        return $http.post("../${classNamevar}/update.do", entity)
    }

})